package server

import (
	"github.com/akirakazu/go-simplejson"
)

// Listener created for "subscribe" commands, listening message from
// "publish" commands or internal message
type listener struct {
	id      string
	connId  string
	pattern *json.Json
}

func newListener(id string, connId string, pattern *json.Json) *listener {
	l := new(listener)
	l.id = id
	l.connId = connId
	l.pattern = pattern
	return l
}
